package com.ky.gp.app.controller;

import com.ky.common.vo.R;
import com.ky.gp.app.service.MaterialFeign;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * --- 天道酬勤 ---
 *
 * @author 1379
 * @date 2024/6/18
 * @desc -- 代码敲烂 月薪过万--
 */
@Api(value = "教材相关接口")
@RestController
@RequestMapping("/api/material")
public class MaterialController {


    @Autowired
    private MaterialFeign materialFeign;


    @ApiOperation(value = "根据课程id查询教材")
    @RequestMapping("/courseRefmaterial")
    public R getCourseRefmaterial(Integer courseId) {
        return materialFeign.getCourseRefmaterial(courseId);
    }

}
